package routers;

import servlet.*;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

public class Routers {


    private static Map<String, Servlet> mapping = new HashMap<>();

    public static void addRouter(String url, Servlet servlet){
        mapping.put(url,servlet);
    }

    public static Servlet getRoutersServlet(String url){
        return mapping.get(url);
    }
}
